package com.itheima.config;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * @Author: zhuan
 * @Desc: MybatisPlus配置类
 * @Date: 2022-05-12 16:56:27
 */
@Configuration
public class MybatisPlusConfig {


		@Bean
    public MybatisPlusInterceptor mybatisPlusInterceptor(){
				MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
			//分页拦截器
				mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor());
				return mybatisPlusInterceptor;
		}
    }
